<?php
	require "../dao/staff_dao.php";

	$sec_spepuls = [];
	$sec_spepuls["sec_collegeid"] = $_POST["sec_collegeid"];
	$sec_spepuls["sec_gradeid"] = $_POST["sec_gradeid"];
	$sec_spepuls["sec_classid"] = $_POST["sec_classid"];
	$sec_spepuls["spepul_sections"] = implode(",",$_POST["spepul_sections"]);
	
	$flag = insertSection_spepul($sec_spepuls);
	
	
	if($flag){
?>
		<script>
			alert("添加成功。。。。");
			location.href = "S_insertStu_section.php";
		</script>
<?php
	}else{
?>
		<script>
			alert("添加失败。。。。");
			location.href = "S_insertStu_section.php";
		</script>
<?php
	}
?>